/**
 * 3D包围盒相交检测基类
 */
export default class AabbIntersects{
    constructor(values={}){
        this._values=values;
        this._init();
    }

    /**
     * 获取所有节点
     * @returns {Array}
     */
    get nodes(){
        return this._nodes;
    }

    /**
     * 设置交叠对记录器
     * @param overlaps
     */
    set overlaps(overlaps){
        this._overlaps=overlaps;
    }

    /**
     * 添加形状
     * @param collider
     */
    addCollider(collider){}

    /**
     * 更新检测形状
     * @param colliders
     */
    updateCollider(...colliders){}

    /**
     * 移除形状
     * @param collider
     */
    removeCollider(collider){}

    _init(){
        this._initVariable();
    }
    _initVariable(){
        this._nodes=[];
        this._overlaps=null;
        this._volume=64;
        this._nodesList=new Uint8Array(this._volume);//0:断点,1:空位,2:节点
    }
}